home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
6_17.lha
/
6_17
/
6_17a4.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
302b
|
18 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ x = y
ector& vector::operator=(vector &vec)
vec.p->refcnt++;
if (--p->refcnt == 0)
{
delete p->f;
delete p;
}
p = vec.p;
return *this;